package com.toe.pojo.dto.commodity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CommodityClassesDTO对象", description="")
public class CommodityClassesDTO implements Serializable {

    @ApiModelProperty(value = "课程id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "课程标题")
    private String title;

    @ApiModelProperty(value = "课程简介")
    private String introduce;

    @ApiModelProperty(value = "课程类型,课程类型表的id")
    private Long typeId;

    @ApiModelProperty(value = "课程原价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "课程现价")
    private BigDecimal presentPrice;

    @ApiModelProperty(value = "课程链接")
    private String url;

    @ApiModelProperty(value = "销售量")
    private Integer sales;

    @ApiModelProperty(value = "课程封面图片")
    private String cover;

    @ApiModelProperty(value = "提供课程的商家的id")
    private Long businessId;
}
